package com.jinshan.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jinshan.edu.entity.EduSubject;
import com.jinshan.response.SubjectVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author Jinshan
 * @since 2020-06-24
 */
public interface EduSubjectService extends IService<EduSubject> {

    void upload(MultipartFile file) throws Exception;

    EduSubject querySubjectByTitleAndParentId(String title, String parentId);

    void addEduSubject(EduSubject eduSubject);

    List<SubjectVO> getAllSubject();

    boolean addFirstLevelSubject(EduSubject eduSubject);

    boolean addSubject(EduSubject eduSubject);

    boolean deleteSubjectById(String id);

    void deleteSubjectByCourseId(String courseId);
}
